﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage.Master" AutoEventWireup="true"
    CodeBehind="IntegralLog.aspx.cs" Inherits="ZF.WS.Admin.Member.IntegralLog" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="w100_">
        <tr>
            <td valign="top">
                <!--自定义条件 开始-->
                <%--<div class="tabHeadMenu">
        <a href="MemberList.aspx?mt=1" class='<%=(MemberType==1)?"action":"" %>'>网站会员</a> <a
        <a href="MemberList.aspx?mt=100" class='<%=(MemberType==100)?"action":"" %>'>系统管理员</a>
    </div>--%>
                <!--自定义条件 结束-->
                <!--列表 开始-->
                <div class="tabContainer">
                    <zf:GridView ID="gvList" runat="server" OnSorting="gvListSorting" OnPageIndexChanging="gvListPageChanging">
                        <Columns>
                            <zf:TemplateField IsKeyField="true" DefaultSortField="true" DefaultSortDirection="Descending"
                                SortExpression="Log.IntegralLogId">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="KeyLabel" Text='<%# Eval("Log.IntegralLogId")%>'></asp:Label>
                                </ItemTemplate>
                            </zf:TemplateField>
                            <zf:TemplateField IsCheckField="true">
                            </zf:TemplateField>
                            <zf:TemplateField IsSerialNoField="true">
                            </zf:TemplateField>
                            <zf:TemplateField HeaderText="帐号">
                                <ItemTemplate>
                                    <a href="IntegralLog.aspx?id=<%#  Eval("Member.MemberId")%>">
                                        <%#  Eval("Member.Account")%>
                                    </a>
                                </ItemTemplate>
                            </zf:TemplateField>
                            <zf:TemplateField HeaderText="积分">
                                <ItemTemplate>
                                    <%#((int)Eval("Log.Integral"))>0?"-":"+" %><%# Math.Abs((int)Eval("Log.Integral"))%>
                                </ItemTemplate>
                            </zf:TemplateField>
                            <zf:TemplateField HeaderText="类型">
                                <ItemTemplate>
                                    <%#  Eval("Log.Title")%>
                                </ItemTemplate>
                            </zf:TemplateField>
                            <zf:TemplateField HeaderText="发生时间" DefaultSortDirection="Descending" SortExpression="Log.AddTime">
                                <ItemTemplate>
                                    <%#  Eval("Log.AddTime")%>
                                </ItemTemplate>
                            </zf:TemplateField>
                            <%--<zf:TemplateField HeaderText="操作">
                    <ItemTemplate>
                         <a href='MemberInfo.aspx?mid=<%# Eval("Log.IntegralLogId")%>' >
                                查看</a> | <zf:LinkButton ID="LinkButton1" runat="server" OnClick="Delete" CommandArgument='<%# Eval("Log.IntegralLogId") %>'
                            OnClientClick="return confirm('是否确定要删除此记录');">删除</zf:LinkButton>
                    </ItemTemplate>
                </zf:TemplateField>--%>
                        </Columns>
                    </zf:GridView>
                </div>
                <!--列表 结束-->
                <div class="mt5_ fc_">
                </div>
                <!--自定义按钮 开始-->
                <div class="btnContainer mt10_ dn_">
                    <span class="fl_ mr10_">
                        <input type="checkbox" class="checkAll" bind=".tab" />选中本页显示的所有记录</span>
                    <zf:LinkButton ID="LinkButton1" runat="server" OnClick="Delete" CommandArgument='select'
                        OnClientClick="return confirm('是否确定要删除选中记录');">删除选中的行</zf:LinkButton>
                </div>
                <!--自定义按钮 结束-->
                <div class="fc_ mt10_">
                </div>
                <!--搜索 开始-->
                <div class="searchContainer">
                    <table>
                        <tr>
                            <td class="l">
                                搜索选项:
                            </td>
                            <td class="m">
                                <div class="c">
                                    <span class="t">帐号:</span><span class="c">
                                        <zf:TextBox runat="server" class="dttxt" ID="tbAccount"></zf:TextBox>
                                        <zf:RadioButtonList runat="server" ID="rblCT" RepeatLayout="Flow" RepeatDirection="Horizontal">
                                            <asp:ListItem Value="0" Text="模糊匹配" Selected="True"></asp:ListItem>
                                            <asp:ListItem Value="1" Text="完全匹配"></asp:ListItem>
                                        </zf:RadioButtonList>
                                    </span><span class="t">&nbsp;&nbsp;起始时间:</span><span class="c">
                                        <zf:TextBox runat="server" class="dttxt" ID="tbBeginTime" onfocus="calendar();"></zf:TextBox></span>
                                    <br />
                                    <span class="t">类型:</span><span class="c">
                                        <zf:DropDownList runat="server" ID="ddlTitle" AppendDataBoundItems="true" class="ddl">
                                            <asp:ListItem Text="--------请选择--------" Value=""></asp:ListItem>
                                        </zf:DropDownList>
                                        <zf:TextBox runat="server" class="dttxt dn_" ID="tbType"></zf:TextBox></span>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="t">&nbsp;&nbsp;结束时间:</span><span
                                        class="c">
                                        <zf:TextBox runat="server" class="dttxt" ID="tbEndTime" onfocus="calendar();"></zf:TextBox></span>
                                    <zf:Button runat="server" ID="Button2" Text="搜索统计" OnClick="Search" class="linkbtn" />
                                    <zf:Button runat="server" ID="Button1" Text="全 部" OnClick="AllList" class="linkbtn" />
 
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
            <td valign="top">
                <style>
                    .tabtj { margin-left: 30px; }
                    .tabtj th { line-height: 30px; height: 30px; background: #4967A0; width: 100px; text-align: center; color: #fff; }
                    .tabtj td { text-align: center; line-height: 30px; height: 30px; }
                </style>
                <zf:ListView runat="server" ID="lvTJ">
                    <LayoutTemplate>
                        <table class="tabtj" border="1">
                            <tr>
                                <th>
                                    类型
                                </th>
                                <th>
                                    小计
                                </th>
                            </tr>
                            <zf:PlaceHolder ID="itemPlaceHolder" runat="server">
                            </zf:PlaceHolder>
                            <tr>
                                <th>
                                    合计
                                </th>
                                <th class="tjresult">
                                </th>
                            </tr>
                        </table>
                    </LayoutTemplate>
                    <ItemTemplate>
                        <tr>
                            <td>
                                <%#Eval("Title") %>
                            </td>
                            <td class="xj">
                                <%#Eval("Inte") %>
                            </td>
                        </tr>
                    </ItemTemplate>
                </zf:ListView>
                <script>
                    $(function() {
                        var tj = 0;
                        $(".tabtj .xj").each(function() {
                            tj += parseInt($(this).html());
                        });

                        $(".tjresult").html(tj);
                    });
                </script>
            </td>
        </tr>
    </table>
    <!--搜索 结束-->
</asp:Content>
